<?php

namespace App\Http\Requests;

use App\Http\Requests\Request;
use Illuminate\Contracts\Validation\Validator;
class FormRequest3 extends Request
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
 
    
    public function authorize()
    {
      return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
             //'name' => 'required|max:255',     
             'password' => 'required|min:1|confirmed',
        ];
    }
    
    public function messages(){
    return [
        'password.required'  => '密码不能为空',
        'password.confirmed'  => '密码不一致',
    
    ];
}
    
    
    
}
